//
//  MineMainController.swift
//  GLUZSwift
//
//  Created by xyanl on 2025/3/8.
//  Copyright © 2025 考拉🐨. All rights reserved.
//

import UIKit
import SnapKit

class MineMainController: BaseWebViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        initNav()
        initUI()
    }
    
//    override func viewDidAppear(_ animated: Bool) {
//        super.viewDidAppear(animated)
//        onNativeShow(className)
//    }
//    override func viewDidDisappear(_ animated: Bool) {
//        super.viewDidDisappear(animated)
//        onNativeHide(className)
//    }
}

private extension MineMainController {
    func initNav() {
        vhl_navBarHide = true
        navigationItem.leftBarButtonItem = nil
    }
    
    func initUI() {
        let url = H5UrlManager.mineH5Url
        xLog("我的 url：\(url)")
        let request = URLRequest(url: URL(string: url)!)
        wkWebView.load(request)
        wkWebView.snp.remakeConstraints { make in
            make.left.right.top.equalToSuperview()
            make.bottom.equalToSuperview().offset(-xIphoneTabBarSafeHeight)
        }
    }
}
